---
title: templates
---

import VersionLabel from '@site/src/components/Docs/VersionLabel';

<VersionLabel version="1.24.0" header />

The `moon templates` command will list all templates available for [code generation](./generate).
This list will include the template title, description, default destination, where it's source files
are located, and more.

```shell
$ moon templates
```

### Options

- `--json` - Print templates in JSON format.

### Configuration

- [`generator`](../config/workspace#generator) in `.moon/workspace.yml`
